package com.hunan.yllxy.repostitory.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hunan.yllxy.repostitory.entity.UserInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 刘华
 * @since 2025-06-16
 */
@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    List<UserInfo> findByRole(String roleId);

    Page<UserInfo> findByRolePageQuery(String roleId, Page<UserInfo> page);
}
